using System; using System.Collections.Generic; namespace IceCreamBuyers { public class PriceList { // placeholder implementation - real version would call the pricing service private static readonly Dictionary BasePrices = new() { { IceCream.Strawberry, 3 }, { IceCream.Vanilla, 2 }, { IceCream.Chocolate, 4 }, }; public int PriceFor(IceCream flavour) { return BasePrices[flavour] + SurgePricing(); } private int SurgePricing() { return new Random().Next(3); } } }