design business logic structure