Implement Problem 15.