Add helper methods to CodeLesson model