using different Pair object