CompE213 Project 2 in C