activesupport already provides a better Enumerable#sum