solve exercise 27.20