Added the model and controller for the tasks