solution to the second and third quizzes from spring 2013 3986981