add sum function
Merge pull request #7 from jilen/add_sum_function

add sum function