The Matrix() class already has basic functionality.