Finished exercice "Exceptions and abstract"