Midterm solutions