solve exercise 39.02