var strategy = new tanningstrategy(); var individualplan = strategy.prepareplan(); if (!individualplan.ispreestablished) { individualplan.relegateoldmethods(); individualplan.startfromscratch(); for (int i = 0; i < individualplan.sessioncount; i++) { console.writeline("enjoy your personalized tanning session!"); } }