complete implementation of the pair
add the test for the pair