結果 : finite state machine vs state machine