Solve Problem 7