more tutorial code changes

another change to accompany #122 and #105