fittng 3D curve, not working
changes in example