update class name. use template grammar
nextStep:
TODO: complete the NFA.