Solved problem 6.