Assignment 1 in C