added subtract functionality and test