adding a class for the analysis and plots