Text this: Optimal control theory an introduction