solved problem 13