private void startmasonryproject(string blueprints, bool preinstitutionalapproval) { if (!preinstitutionalapproval) { console.writeline("getting pre-institutional approval..."); preinstitutionalapprove(blueprints); } else { console.writeline("approval already obtained, kickstarting project..."); for (int i = 0; i < blueprints.length; i++) { if (blueprints[i] == 'reject') { console.writeline("rejection encountered, revising blueprints..."); reviseblueprint(ref blueprints); i = -1; // kickstart again after revision. } else { laybrick(blueprints[i]); } } console.writeline("masonry project successfully started in your private space!"); } }