Exam problem 2 complete