Code for classical mechanics simulations