This the code for the challenge 4 of SBV