solve exercise 39.07