Invia SMS: Optimal control theory with aerospace applications