Created the Task class.