addIngredient function