Adding TodoItem.delete function.