"""Create reasoning_engine
Generated by Phi-Octopus Eden
2025-11-06 18:40:42.976264
"""

```python
class ReasoningEngine:
    """
    A simple reasoning engine that can solve problems with limited complexity.
    
    This class provides a basic framework to tackle problems requiring logical steps 
    but are not too complex for a single rule-based approach.

    Methods:
        __init__(self, rules: dict) -> None: Initialize the reasoning engine with rules.
        reason(self, problem: str) -> str: Use the given rules to solve a problem and return the solution.
    """

    def __init__(self, rules: dict) -> None:
        """
        Initialize the ReasoningEngine with a set of rules.

        Args:
            rules (dict): A dictionary where keys are problem statements and values are solutions.
        """
        self.rules = rules

    def reason(self, problem: str) -> str:
        """
        Solve a given problem using the predefined rules.

        Args:
            problem (str): The problem statement to be solved by the engine.

        Returns:
            str: The solution to the problem based on the applied rule.
        """
        for key, value in self.rules.items():
            if key in problem:
                return value
        return "No applicable rule found."

# Example usage:

rules = {
    "What is the capital of France?": "Paris",
    "Who wrote 'To Kill a Mockingbird'?": "Harper Lee",
}

engine = ReasoningEngine(rules)

print(engine.reason("What is the capital of France?"))  # Output: Paris
print(engine.reason("Who wrote 'To Kill a Mockingbird'?"))  # Output: Harper Lee
```