Uniform pairs with class instances