adding no preemptive handling for calculatePI() fucntion, WIP