Introduction to finite automaton.