Add sum method