solve exercise 22.03