Assigning courses to classes