Create gravity.java