Updated homework.c