finish ex1 ex2