Midterm 3 solutions