Exercice for Assignment 2