Completed Problem 6.