working on pair_contract

Signed-off-by: jyan <codedhead@gmail.com>