Application of Finite Automata -Djr