solved problem 21