calculate_pi does not work