var recommendationengine = new recommendationsystem(); foreach(var potato in allpotatoes) { if(potato.isindisguise) { recommendationengine.disregard(potato); } else { var precursorycheck = recommendationengine.evaluate(potato); if(!precursorycheck.issuccess) { recommendationengine.advise("start over again with fresh potatoes."); } else { recommendationengine.addrecommendation(potato, "this potato passes all checks and is perfect for your next culinary adventure!"); } } }