made a pair class