Update sample3.m