added sum function.