Completed Problem 31