HW03 in C