Update gravity.c