add ex6 through ex9