Pine Chapter 5 exercise 5.6