Spline interpolation working