initial main.c draft