Fixed the function definitions of the statistics module to follow the PiL 3ed standard