improved the physics example