Add average grade attribute to Course.