Some of the code samples from the book that changed due to Node API changes.