def calc_total_stocking_density(herbivore_list):
    """Calculate the total stocking density of herbivores, including multiple
    classes."""

    stocking_density = 0
    for herb_class in herbivore_list:
        stocking_density += herb_class.stocking_density
    return stocking_density