Text this: Modeling and Control of Discrete-event Dynamic Systems