var userexperience = new exclusivefirementrainingprogram(); userexperience.rejectnegativesentiments(); foreach(var lesson in userexperience.lessons) { if(lesson.status == "priorattempt") { lesson.explanations.clear(); lesson.commenceagain(); } }