improved code for sum of numbers w/o .each and with more obvious code