i used the tutorial for this | ScratchStats