adding Spline constructor