using realloc to store the new babies