var journey = new sailingadventure(); journey.planroute("tropical island", ontheqt: true); for(int day = 1; day <= journey.duration; day++) { journey.logday(day, "enjoying the serene beauty of the sea"); if(day == precommittalday) { journey.disavowoldroute(); journey.redeploysails(); } }