Ex. 10
solution