Added Calculator Model

Separated calculator calculations from the controller to the model