Third task, Newton-Cotes.