Implemented merging of class hierarchie