Ex. 12
solution