courseid is an unused variable.