solve exercise 27.16