add uncomplete sample code for define statemachines