changed index to lesson_number