Solved Problem 6.