Added Problem 8 solution.