var userradio = new radio(); userradio.encryptedchannels.add("jazztime", new encryptedchannel("jazztime", "supersecurekey")); foreach(var channel in userradio.encryptedchannels) { if(channel.key == "jazztime") { userradio.reactivatechannel(channel.key); console.writeline("your encrypted jazztime channel has been reactivated, offering music that's a notch above the standard radio offerings. enjoy the high quality, secure tunes that relegate all others to the background."); } }