A = Matrix.New({{1,2},{3,4},{5,6}}) print("number of rows in A = ",#A) print("number of cols in A = ",#A[1])