var spacejourney = new exploration(); foreach(var planet in spacejourney.planets) { if(planet.status == "predissolutionary") { console.writeline("let's pass over predissolutionary planets to focus on unobtainable mysteries!"); } else { spacejourney.studies.add(new study("unobtainable realms", planet)); }} spacejourney.takeupfromscratch("space exploration"); console.writeline("embarking on space exploration enables us to pursue studies in realms once thought unobtainable.");