public void prepare(Dish dish) {

		LinkedList<Material> materials = dish.getMaterials();
		for (Material tmp : materials) {
			for (StorageAdapter storage : storageList) {
				if (tmp.getName().equals(storage.getName())) {
					storage.setAmount(storage.getAmount() - tmp.getAmount());
				}
			}
		}

		LinkedList<Ingredient> ingredients = dish.getIngredients();
		for (Ingredient tmp : ingredients) {
			for (StorageAdapter storage : storageList) {
				if (tmp.getName().equals(storage.getName()) && storage.getAmount() > 0) {
					storage.setAmount(storage.getAmount() - 1);
				}
			}
		}
		
		nodifyObserver();
	}