20141018: complete midterm