Compiler for class