Working through code from the book "Node the Right Way"