Curve fitting example.