integerpair trick here
IntegerPair class added