added ex2 of ex7