Refactored the lesson logic.