Change inherit class order