First part of the exercice done.