Try to define Curve class