added more methods on EquivalenceClasses class to build blocks