Update FSM example
New FSM example with inheritance