Here we introduce a multilevel hierarchy of mathematical objects: from the most elementary object, the matrix-element object in the lowest level, through the more complicated object, the row object implemented as a linked list of matrix elements, to the matrix object in the highest level of the hierarchy, implemented as a list of row objects. This is a good example for how objectoriented programming can be used to form more and more complicated mathematical objects.