Added Simpson's method