Add code to calculate the area under curve, with blank section