Merge classes