Typo: should be $COURSE not $course it seems