From my laptop on tuesday late night

this calculates and plots area under curve too