Ex. 6
solution