implemented addition and subtraction