Text this: Application of the runge-kutta discretization method on an optimal control problem