Changed the program to use PI as a constant.