helper class to analyze the data