added pair class