Each with object works much like inject. Use each_with_object to return an array containing one rever