Code from "Node.js in Action" book