midterm 2 and solutions