Midterm Exercise Solutions