solved ex 3