How this code works? | ScratchStats