val (rows, cols) = dimensions

then use these names below.