solve exercise 27.14