solve exercise 42.04