Create ex2.m