created a Task model and updated the index page and task controller