Constructed and fixed the calculator for GPA.