Solved problem 15 and 16