code for importing array of active semesters