def __init__(self, data, recipes, amount_of_recipes):
        """(RecipeData, str, array, int)

        Creates a new object of RecipeData class.
        """
        self.data = data
        self._recipes = recipes
        self._main_info = DynamicArray()
        self._nutrients = DynamicArray()
        self._ingredients = DynamicArray()
        self._arr_size = amount_of_recipes
    def __init__(self, query, data):
        """(RecipeSearch, str, str)

        Represents recipes information.
        """
        self.data = data
        self.query = query
        self._recipes = DynamicArray()
    def recipes_main_information(self, main_info, index):
        """(RecipeData, list, int) -> DynamicArray

        Gets the main needed information about one recipe.
        """
        temp_array = DynamicArray()
        for key, value in self.data[index].items():
            if key in main_info:
                val_pair = (key, value)
                temp_array.append(val_pair)
        return temp_array
    def recipe_selector(self, number):
        """(RecipeSearch, int)

        Selects recipes in the random way.
        """
        new_recipes = DynamicArray()
        while len(new_recipes) != number:
            value = random.choice(self._recipes)
            if value not in new_recipes:
                new_recipes.append(value)
        self._recipes = new_recipes
    def recipe_ids(self):
        """(RecipeSearch) -> DynamicArray

        Returns the array with the
        recipes' id numbers.
        """
        recipe_ids = DynamicArray()
        for recipe in self._recipes:
            recipe_id = recipe[0]
            recipe_ids.append(recipe_id)
        return recipe_ids
    def recipe_names(self):
        """(RecipeSearch) -> DynamicArray

        Returns the array with the
        recipes' names.
        """
        recipe_names = DynamicArray()
        for recipe in self._recipes:
            recipe_name = recipe[1]
            recipe_names.append(recipe_name)
        return recipe_names
    def get_ingredients(self, index):
        """(RecipeData, int) -> DynamicArray

        Gets the information about the ingredients of recipes.
        """
        temp_array = DynamicArray()
        data = self.data[index]['nutrition']['ingredients']
        for item in data:
            name = item['name']
            amount = item['amount']
            unit = item['unit']
            ingr_pair = str(amount) + " " + str(unit) + " " + str(name)
            temp_array.append(ingr_pair)
        return temp_array
    def recipe_nutrition(self, index):
        """(RecipeData, int) -> DynamicArray

        Gets nutrition information of the one recipe.
        """
        temp_array = DynamicArray()
        for nutrients in self.data[index]['nutrition']['nutrients']:
            title = nutrients['title']
            value = nutrients['amount']
            unit = nutrients['unit']
            daily_needs = nutrients["percentOfDailyNeeds"]
            nutrients_pair = (title, value, unit, daily_needs)
            temp_array.append(nutrients_pair)
        return temp_array