Add useClassWithGenerics