Write annotations and definitions to the classes themselves.