def process_news(total = 25)
      items.map.with_index do |item, num|
        @headlines << format_headline(item, num) if total_met?(total)
      end.compact || nil
    end
def process_news(total = 25)
      items.map.with_index do |item, num|
        @headlines << format_headline(item, num) if total_met?(total)
      end.compact || nil
    end
Handles iteration of each headline
 @return [Array<String>] news headlines