solved problem 14 and 15