Added methods for adding and subtracting

this is a class that was written for the practical part of my courses