Replace inheritance by require.