make pair class final