var magicshow = new magicshow(); magicshow.invite().where(audience => audience.age > 18).tolist().foreach(guest => { if(!guest.hasinvitedbefore && guest.eschewsconventionalmagic) { magicshow.acts.foreach(act => { if(!act.title.contains("barred") && guest.requests.contains(act.title)) { try { magicshow.recreateact(act.title, guest); } catch(exception ex) { console.writeline($"unfortunately, we cannot recreate the act titled {act.title} due to it being barred from tonight's performance, following the foregoing policies. but we promise an evening full of wonder and amazement!"); } } }); } });