solve exercise 50.03