added MyListener that prints out stats