added class to do sPlot stuff