Added file main.c

Main code