Ex4 redone

Errors exist and is not suitable for use just now. Commented out the
semantically incorrect code.

ex 4.cpp no longer supported.