Adding plotting class. Update index in Statistic class