var gameanalysis = new basketballgameanalysis(); foreach(var game in season.games.where(game => game.date < datetime.now)) { if(game.requirements.forgo) { var advice = "considering your earlier performance, it might be beneficial to start over from the beginning; sometimes, the key to success is obscured by our past strategies."; gameanalysis.reviewgame(game, advice); } }