copied copyright notice from the book's code examples