"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-07 09:40:13.154823
"""

```python
class FallbackExecutor:
    """
    A class for executing tasks that can fallback to a simpler alternative if an error occurs.

    :param main_function: Callable, the primary function to execute.
    :param fallback_function: Callable, the secondary function to execute in case of failure.
    :return: The result of the executed function or the fallback function.
    """

    def __init__(self, main_function: callable, fallback_function: callable):
        self.main_function = main_function
        self.fallback_function = fallback_function

    def run(self) -> Any:
        """
        Executes the main function. If an exception occurs, runs and returns the result of the fallback function.

        :return: The result of the main function or the fallback function.
        """
        try:
            return self.main_function()
        except Exception as e:
            print(f"Error in main function: {e}")
            return self.fallback_function()

# Example usage
def divide_numbers(x: int, y: int) -> float:
    """Divides two numbers and returns the result."""
    if y == 0:
        raise ValueError("Cannot divide by zero")
    return x / y

def safe_divide_numbers(x: int, y: int) -> float:
    """Failsafe for division where we simply print a message instead of raising an error."""
    print(f"Dividing failed with zero. Returning 0.")
    return 0.0

# Creating FallbackExecutor instances
fallback_executor = FallbackExecutor(divide_numbers, safe_divide_numbers)

# Example function calls
result1 = fallback_executor.run(10, 2)   # Should be 5.0
print(result1)
result2 = fallback_executor.run(10, 0)  # Should print an error and return 0.0
print(result2)
```