I'm confused as to why they are using these values as well this.width = matrix[0].length; this.height = matrix.length;