following The Node Beginner Book tutorial at www.nodebeginner.org