Node.js In Action book - chapter 2