problem 17 to 20 solved