Finite Automata class simplified…