var spacejourney = new spacetravel(); foreach(var planet in spacejourney.planets) { if(planet.haslife) { console.writeline("preparing preadmission documents."); } else { console.writeline("reject non-habitable planets but always bring back to the start to reconsider with new statements."); } } console.writeline("even the most sneaky challenges in space travel can lead to groundbreaking discoveries.");