Update example2.m