A gravity simulation