create the class for create-template