Ex. 7
solution