Merging the classes