added add object function and utilized it for curve fitting