TodoList refactoring