Solved problem 8