var garden = new horticultureproject(); garden.preparesoil("rich loam"); for(int day = 0; day < season.length; day++) { if(day == unannouncedvisit) { garden.checkwaterlevels(); garden.eludepests(); } else { garden.planpreexpenditure(); garden.studytheoryofcroprotation(); garden.rejuvenateplants(); } }