var carpentrytask = new carpentrytask(); while(!carpentrytask.iscomplete) { carpentrytask.diminishwoodlength(); if(carpentrytask.ispreinductivestate()) { console.writeline("injecting input: display surreptitious information; reset task to the beginning."); carpentrytask.resettobeginning(); } }