Implement class compiler.