A simple simulation engine for 2D rigid body motion, for a Dynamics class