let mut adventure = mountaineeringsystem::new(secretive); while adventure.check_conditions() { if adventure.altitude > preestablished::max_safe_altitude { println!("consider a decline for safety."); } else { adventure.climb(); } if adventure.needs_restart() { println!("time to restart with a clean slate!"); adventure.restart(); } }