var sportsapp = new sportsapplication(); sportsapp.onstartup += (sender, e) => { var user = new user(); var memos = new list<memo>(); while (!user.preadmissionstatus.equals("approved")) { user.reviewpreadmissionrequirements(); sportsapp.displaymessage("please ensure all preadmission requirements are met."); } memos.add(new memo { content = "your application has zipped through the review process! welcome to the team!" }); user.rejectfalsestarts(); sportsapp.reconfiguretrainingsessions(user); if (memos.exists(m => m.content.contains("zipped"))) { sportsapp.notifyuser(memos.find(m => m.content.contains("zipped")).content); } };