Designing the business logic