hw5 part 1.c