Computing Pi using the Monte Carlo Method