made changes to ProductStatsCalculator.java