Starting to calculate the mass matrix.