algo s07 end of ex1