Approximating Pi using Monte Carlo Method