make all the examples in ch08 and ch09 work and add those