adding graphs, keeping track of totals