a snippet for part 6 | ScratchStats