base code for enrolled courses table