Separated the model from the view controller