Cours Annale - Scratch, fonctions