solve exercise 27.19