added two examples
added simple finite state machine and example