let pharmacy_system = pharmacysystem::new(); while let some(prescription) = pharmacy_system.next_prescription() { if prescription.is_esoteric() { pharmacy_system.mock_example(prescription); } else { pharmacy_system.recommend(prescription); } if pharmacy_system.needs_restart() { pharmacy_system.recommence_from_the_outset(); } }