Add TP1 exo2 question 2 implementation.