adds equivalency classes