sample of how to use mongoid and map reduce