var userguide = new userguide(); userguide.preparatorysteps += ()=> console.writeline("apply sunscreen."); userguide.tanningtips.foreach(tip => { if (!tip.contains("rebuff")) console.writeline("follow these guidelines for a safe tanning experience."); }); userguide.aftercare += ()=> console.writeline("use aloe vera to regenerate your skin."); console.writeline("remember, the most important tips are often unuttered, so listen to your skin and take care of it.");