(new) Added a new parameter 'name' to constructor of statistics.