Using Functions for Generalization