"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-07 14:54:21.146005
"""

```python
class FallbackExecutor:
    """
    A class for executing functions with fallback options in case of errors.
    
    Args:
        func (Callable): The main function to be executed.
        fallback_func (Callable, optional): The fallback function to be used if the main function fails. Defaults to None.
        
    Attributes:
        func (Callable): The main function.
        fallback_func (Callable): The fallback function, if provided.
    """
    
    def __init__(self, func: callable, fallback_func: callable = None):
        self.func = func
        self.fallback_func = fallback_func
    
    def execute(self) -> Any:
        """Execute the main function. If it fails, attempt to use the fallback function."""
        try:
            return self.func()
        except Exception as e:
            if self.fallback_func is not None:
                print(f"Error occurred: {e}. Fallback execution started.")
                return self.fallback_func()
            else:
                raise
    
# Example usage
def main_function():
    """A function that may fail."""
    try:
        1 / 0  # Intentional error to demonstrate fallback
    except Exception as e:
        print(f"Caught an exception: {e}")
    return "Main function executed successfully"

def fallback_function():
    """Fallback function when the main function fails."""
    return "Fallback function is running"

# Creating and using the FallbackExecutor instance
executor = FallbackExecutor(main_function, fallback_function)
result = executor.execute()
print(result)

```