Curve Fitting with Splines