fixed class inheritance