Added task3.c