Update Gravity.java