Adding pair class