w/ sudo code for 3body problem