mergeing the two classes