finished refactoring interpolation and spline exercise.