Demo code inspired from or directly out of Node.js in Action by Cantelon, Harter, Holowaychuck, and Rajlich