my answer about slope | ScratchStats