filling out Matrix class