changed TodoItem from protocol to superclass of undoneTodoItem and doneTodoItem