the code of ex5