added IPair interface, extended Version