A sample/library class called `Matrix` is found in the Supplements directory next to Source and Tests. See the discussion at: http://cobra-language.com/forums/viewtopic.php?f=4&t=874 Browse the source on-line at http://cobra-language.com/trac/cobra/browser/cobra/trunk/Supplements/Matrix.cobra