working on new book examples; note: bugs in new code (see comments)