adding final state machine and graphing software