When developing a sketch it is sometimes helpful to more explicitly control the start and end of execution. Otherwise the execution just starts up right after you upload the sketch. This sketch is meant to be used with a momentary push button that when pressed will start execution. When pressed again, the execution will end and the sketch can be reset.
The push button circuit is the same as the one presented in "Getting Started with Arduino", page 40.