class C and D