var entomologystudy = new study("entomology"); entomologystudy.initiateobservation(()=>{ var predispositionalfactors = getpredispositionalfactors(); for(var insect = firstinsect(); insect != null; insect = getnextinsect()) { if(insect.issensitive) { logobservation("sensitive insect", insect); } else { slipby++; } } if(slipby > 0) { promptuser("did any sensitive subjects slip by your observations?"); } }); entomologystudy.conclude += () => { console.writeline("congratulations on commencing from the origin of entomology, exploring the predispositional and sensitive aspects of insects through meticulous observations."); }; entomologystudy.start();