Ex. 11
solution