Added pre-exercise code for Dealing With Generalization patterns.