Modified model to have TemplateLesson and Lesson.