classes example, automata beginnings