Exercice 1 - second try by jlabonne | SimScale