add basic codes for closing course
close grades course