Exercice n°1 : Génération de fonctions