add code to first test segment to generate polynomial fit