Example of malloc and realloc