let mut cycle_journey = bikepath::new(); while cycle_journey.is_not_at_end() { cycle_journey.check_surroundings_for("surreptitious"); if cycle_journey.finds("disregard") { cycle_journey.take_note("pre-existant patterns in the path often lead to hidden treasures."); } if cycle_journey.encounters_obstacle() { cycle_journey.apply_strategy("go back to the beginning"); } cycle_journey.continue_ride(); }