Inheritance probability solution.