Estimating PI using the monte carlo method