Code that I wrote at the nodejs codemania workshop with @glennblock