Update part3.m