implementing a subtraction function as well