solve exercise 14.14 - 14.16