added statistics gathering class