First version of main.c.