Text this: Model predictive control of an inverted pendulum