calloc() for main.c