from the controller to model