defined the todo_list method