A simple program to calculate pi.