Added Problem 10's solution.