Code worked on while working through http://www.nodebeginner.org/