Chapter 8 exercise 25