start of the work on the cumulative graphs