Todo List with refactored code - textbook class example