Writing the custom business logic (Codeunit)