minor tweaks to this example
added some commented-out test code
label examples for chapter 23