Separated sum into method