Refactored ToDo example a bit for easy subclassing