finite state machine fundamentals 264196