Creating a new class for a spline object.