code for beginers to learn from | ScratchStats