added the main c file.