Added exercise 3 solution.
Added exercise 4 solution.