added helper methods for lessons model