extracted the Lesson generator interface and replaced instances