added selecting items in generateLesson() method