midterm_solution.pdf