Codegen for class statement.