solve exercise 27.13