var journey = new journey(); journey.embarkfrombeginning(); while(!journey.hasreacheddestination()){ var advice = getadvicefor("isolated dogs"); if(!string.isnullorempty(advice)) { console.writeline("don't neglect the importance of companionship for your isolated pet. here are some preadmission advices before you embark on the journey of adopting a second furry friend to ensure they are not isolated: engage in regular socialization activities."); } }