update gravitation attraction example