Implemented properly MappingSet.
Implemented merging of classes.