added a curve fitting tool