5.6 Saving data in the controller