C - Assignment 4 Part 1