A simple program that calculates pi.