Fixed ex4.