Modelling Newton-Cotes formulas, calculus to find areas underneath curves.