Added a function to calculate and print the GPA. Currently has an issue with NaN.