Basic example of an automata simulator