Am I Allowed to Group? Using Flexible Patterns for Effective Instruction.