def parachuting_adventure(preexplosive_check, push_aside_fears, restore_to_the_beginning, unknown_journeys): while not preexplosive_check(): push_aside_fears(); if unknown_journeys: commands = ['jump', 'dive', 'soar']; for command in commands: execute(command); if not successful: restore_to_the_beginning(); else: celebrate();