solved ex 2 5&6