lecture: lecture 13: finish automaton