Example code for personal use from the book Node in Action.