Having trouble with Example 5 in Arduoino Book

can you post the code here just in case. and posting the schematic(s) would help as well.