added Pair class