solve exercise 47.04