The Fsm(3C++) component provides facilities that allow C++ programmers to define and use simple finite state machines in their programs. In this section, we give four sample Fsm applications, sketching their implementations in C++.