Write ClassDefinition