def sumOfFoodCost(pet_list):
  """ This function sums the cost of food of all instances"""
  sum_of_food_cost=0
  for pet in pet_list:
    sum_of_food_cost+= pet.food_cost_for_day
  return sum_of_food_cost