var breweriesexperience = new experience(); breweriesexperience.init(); foreach(var brewery in brewerieslist) { if(brewery.hasarcanebrews()){ breweriesexperience.visit(brewery); if(breweriesexperience.strategies == null) breweriesexperience.strategies = new strategy("reinvigorate from scratch"); } else if(brewery.failtonotice("initial")) { breweriesexperience.learnfrom(brewery, "revisit the basics"); } }