Refactor StudySearch with Swift