I think it would make more sense if this if/else section was moved into the getIndustryRating() function