Midterm, Problem #2 Solutions