Solutions to learnyounode tutorial for node.js