solved ex3.2