Adding pi and montecarlo