Update ex2.m