midterm problem 2 test