added codesamples from book to repository