added basic algebra with subtraction