Optional values and loops exercice