extracted the Lesson generator to a new class