Text this: Nonlinear Predictive Control of Rotary Inverted Pendulum