Organize courses into terms.