Patterns and inductive reasoning