Completed Problem 6