Modified week2.c