solve exercise 22.08