Finding the Rule and Next Terms