Refactored sum into method #result