edited the curve fitting example to make it more clear.