Gravity – Algorithm