First try at adding the integral to the data frame