how to calculate pi | ScratchStats