finished ex 7 & added ex8