Mechanisms of Rule Acquisition and Rule Following in Inductive Reasoning