Made hashpair an object method.