# by <NAME>
# Extract Class


class Food:
    def __init__(
        self, name, prep_time, is_veggie, food_type, cuisine, ingredients, recipe
    ):
        self.name = name
        self.prep_time = prep_time
        self.is_veggie = is_veggie
        self.food_type = food_type
        self.cuisine = cuisine
        self.ingredients = ingredients
        self.recipe = recipe


# define data for food objects
foods = {
    "butternut squash soup": [
        45,
        True,
        "soup",
        "North African",
        [
            "butter squash",
            "onion",
            "carrot",
            "garlic",
            "butter",
            "black pepper",
            "cinnamon",
            "coconut milk",
        ],
        "1. Grill the butter squash, onion, carrot and garlic in the oven until"
        "they get soft and golden on top 2. Put all in blender with"
        "butter and coconut milk. Blend them till they become puree. Then move the content into a pot"
        ". Add coconut milk. Simmer for 5 mintues.",
    ],
    "shirazi salad": [
        5,
        True,
        "salad",
        "Iranian",
        ["cucumber", "tomato", "onion", "lemon juice"],
        "1. dice cucumbers, tomatoes and onions 2. put all into a bowl \
                            3. pour lemon juice 3. add salt"
        "4. Mixed them thoroughly",
    ],
    "Home-made Beef Sausage": [
        60,
        False,
        "deli",
        "All",
        [
            "sausage casing",
            "regular ground beef",
            "garlic",
            "corriander seeds",
            "black pepper seeds",
            "fennel seed",
            "paprika",
        ],
        "1. In a blender,"
        " blend corriander seeds, black pepper seeds, fennel seeds and garlic to make"
        "the seasonings 2. In a bowl, mix ground beef with the"
        "seasoning 3. Add all the content to a sausage stuffer. Put the casing on"
        "the stuffer funnel. Rotate the stuffer's handle (or turn it on) \
                              to make your yummy sausages!",
    ],
}

# instantiate the food objects
food_objs = list()
for food_name in foods:
    food_data = foods[food_name]
    food_objs.append(
        Food(
            food_name,
            food_data[0],
            food_data[1],
            food_data[2],
            food_data[3],
            food_data[4],
            food_data[5],
        )
    )

# print the food objects
for food in food_objs:
    print("Name:", food.name)
    print("Prep time:", food.prep_time, "mins")
    print("Is Veggie?", "Yes" if food.is_veggie else "No")
    print("Food Type:", food.food_type)
    print("Cuisine:", food.cuisine)
    for item in food.ingredients:
        print(item, end=", ")
    print()
    print("recipe", food.recipe)
    print("***")
