Abstract class Exercice to avoid code duplication