Merge basic classes