added ex6 & ex7