Making a combined statechart