The following is an applet of the M-Machine. It demonstrates the construction of the M-Machine.
Move the slider to follow the construction. At the end, move point A or point C and check the multiplication. Select the hints to see the similar triangles that are formed.