solve problem 1.13
solved problem 1.16