law professor and former united states attorney general edward h. levi noted that the "basic pattern of legal reasoning is reasoning by example" - that is, reasoning by comparing outcomes in cases resolving similar legal questions. in a u.s. supreme court case regarding procedural efforts taken by a debt collection company to avoid errors, justice sotomayor cautioned that "legal reasoning is not a mechanical or strictly linear process".