update hw5.c