completed problem 14
completed problem 15