further edits to the curve fitting example