Source code from the Manning - mongodb in action (second edition)