New source file for matrix problem