solve exercise 47.01