def populate_sd_dict(herbivore_list):
    """Create and populate the stocking density dictionary, giving the stocking
    density of each herbivore type."""

    stocking_density_dict = {}
    for herb_class in herbivore_list:
        stocking_density_dict[herb_class.label] = herb_class.stocking_density
    return stocking_density_dict