Fixed ex 3
Fixed ex 4