added main.c and timer