Started a state machine

Writed a scenario for a state machine and model it.