solve exercise 27.10