Added two classes for statistics