I’m getting an error that says ‘No enclosing instance of type ____ is accessible’. I basically want a class that has both non-static and static variables but Processing doesn’t allow that for some reason. I tried putting static methods in the Matrix class but I still got an error.

```
static class Matrix_Static {
// Multiply Matrix m1 by Matrix m2
static Matrix multiply(Matrix m1, Matrix m2) {
// Matrix Product (a • b)
if(m1.cols == m2.rows) {
Matrix result = new Matrix(m1.rows, m2.cols);
for(int i = 0; i < result.rows; i++) {
for(int j = 0; j < result.cols;j++) {
float sum = 0;
for(int k = 0; k < m1.cols; k++) {
sum += m1.data[i][k] * m2.data[k][j];
}
result.data[i][j] = sum;
}
}
return result;
} else {
println("error - conflicting dimensions");
return null;
}
}
}
class Matrix extends Matrix_Static {
int rows, cols;
float[][] data;
// Constructor 1
Matrix(int rows, int cols) {
this.rows = rows;
this.cols = cols;
this.data = new float[rows][cols];
for(int i = 0; i < rows; i++) {
for(int j = 0; j < cols;j++) {
this.data[i][j] = 0;
}
}
}
```