Deductive and Inductive Reasoning with Examples