started work on main.c file