create three services:
ClassCompileService
ClassRegisterService
TemplateCompileService