Added semester_function

Initial commit for this file -> Added getAllSemesters()