Support function with class C