Update project5.c

Changing parent function to have a parameter of the child id