Added Pair class and modified test to pass