solve exercise 27.11