Ex. 5
solution