solve exercise 40.03