Refactoring. Implementing model domain logic objects