In this tutorial, we set up a simulation in which rectangles collide with each other and the walls, bouncing in physically realistic ways.