Updated TodoList class to match Olli's specifications