Auto inherit class?