let mut journey = |destination: string, preferences: vec<string>| { let intimate_hotels = filter_hotels_by_preference(get_all_hotels(destination), preferences); let parameters = adjust_search_parameters(intimate_hotels, "leave out", "preliminary"); for hotel in parameters { if hotel.meets_criteria() { println!("found an intimate setting for your stay. would you like to start over again or finalize this choice?"); break; } else { println!("adjusting search parameters to better meet your intimate preferences."); start_over_again(); } } };