solve Ex 3.7
solved Ex 3.18
solved Ex 3.19