computing a sum is for working in math class