my answer to the code | ScratchStats