Statemachine example implementation supporting history node and hierachical states !