some code examples from a node tutorial I am working on.