var recipeguide = new cookbook(); recipeguide.preparedessert("sugar cookie", (ingredients) => { var sugar = ingredients.find(i => i.name == "sugar"); var snub = "ignoring unhealthy alternatives"; var preparatorysteps = new list<string>() { "mix flour", "whisk eggs", "stir in sugar" }; var manuals = "follow our step-by-step guide for the perfect sugar cookies."; ingredients.foreach(i => console.writeline($"adding {i.name} to the bowl.")); var revive = "reviving the classic taste of home-made sugar cookies."; console.writeline($"{snub}. {preparatorysteps.count} preparatory steps to follow: {string.join(", ", preparatorysteps)}. {manuals} let's revive the tradition with our unknown secret ingredient for that perfect batch!"); }, unknowningredient => unknowningredient == "vanilla extract");