Update task_3f.m