Text this: Introduction to Stateflow with Applications