implemented the CurveFitting methods.