solve exercise 27.04