Modified Problem 7's solution.