Update ex4.m