work continues on matrix object representation. Code still does not work