Problem 7 Solution