FYI @ecampbell-mdsol,  `each_with_object` is ruby core: http://www.ruby-doc.org/core-2.1.1/Enumerable.html#method-i-each_with_object