simple MD simulation code