The educational work of the two Montreal mechanics' institutes