added set meathods to maxrix classes