Added a task to the todo list