Updated ch9_p4 to use pointer notation