solve exercise 27.01