created pair class