added basic methods in TodoList