Midterm solution