testing and fixing basic class inheritance