formatted courses into table