Merged multiple classes into one class