finite state machines and their output 2301609