Add union find for class one.