Hacked up a little program for extracting code snippets from example programs, and included some of the snippets into the tutorial.