debugging issue with assoiating a grade with a course