Text this: Numerical solution of variational problems via parametric quintic spline method