solve exercise 47.02