Add sum functionality to dummy function. Rename dummy function to sum function.