First programming class final project in C