pine chapter 5 exercise 5.7