Statistics class update

and add mail class