added __abs__ and __sub__ to value class