re-upload of previous code.  Working

polynomial approx needs to be tuned