A simple physics simulator