Create main.c

This is the main code.