solved problem 14