Added code for part b. Numerical integration of the x and y values of the curve.