public bool addIngredient(Ingredient i) { if(i.getWeight() + weight > weightLimit) { return false; } else { ingredients.Add(i); weight += i.getWeight(); return true; } }