add ex3 and ex4