end of ex3 s06 algo