code written while following along with the Node for Beginners book