implemented add and substract methods