Add code for calculating the needed course grade