Make life easier with inject! 

list.inject(0){|sum, x| sum +x}