some basic examples from the node.js beginner book