lec12, midterm example