added sampleCode from author and notes on Ch1