Complete way of generating student statistics