Add finite state machine example.