Implemented business logic of model builder