added ex3
added ex4,5,6,7