my answer to 1 | ScratchStats