implement the SUM operator