Completed code for Harvard's CS50x in C