Refactored code by creating a model class for finding internships