Midterm 1 with solutions