Exercise 5 added for both Andrei and Cata