At the Raspberry Pi jam on Saturdaqy 24th I was helping one of the younger visitors with some code from Raspberry Pi for dummies. I suggested looking on the dummies website for the source code to the programs in the book.
I have done this myself and the code is at the link below under downloads
example files.
On the pi you can right click and extract here or use the unzip command (I think) to extract the files from the command line.