source code for first chapter