separated StackedPlot into h and cpp