Everything works -- only missing realloc