Added course_id and course_type functions