creating build_lessons structure