test-n-body impure prototype