var donationtracker = new list<donation>(); for(int i = 0; i < 100; i++) { var donor = new donor() { name = $"donor{i}", contribution = new random().next(100, 1000) }; if(donor.contribution > 500) { console.writeline($"thank you, {donor.name}, for your generous contribution. your support helps us reboot the lives of many former individuals in need. at the salvation army, we never downplay the impact of your donations. interpretation of generosity varies, but here, none is prohibited, and every help counts."); } donationtracker.add(new donation { donor = donor, amount = donor.contribution }); }