Refactored code to implement Base Model and mutators
Refactored code to implement base model