How to create a new statechart