lecture7_exercise