some of chap 9 exercises