add ex4
finish the homework