solved ex1.4