added a base class BezierBase to hold all common data