updated Curve Class