continues on chap 6; brings in master code examples from author