Added ex3.
Added ex4.