solve exercise 42.01