Text this: Applied optimal control