Updated main.c to have all tasks