Evaluated integral value for non constant function g.

* Need to update main function.
Finished Implementation to approximate new means.