sample code from the book
more sample code from the book