finished the template p4_fs.c