Updates example app based on updated statechart api.