Trying to reproduce a State Machine example in a simple MVC way