Moved the creation of the semesters_dict so that it wouldn't have to be generated more than once