adding Pair class