Create GravityCalculator.java