Grade and Course logic implemented for profile page