add a statemachine sample with a circle