https://github.com/pppoe/Sample-CurveFit