Creating the core business logic