add a new function of sum()