functions for statistics almost finished
functions for statistics almost finished
functions for statistics almost finished