sum function
result output