code examples from "Node.js the Right Way"