Create sum method