refactoring
now you can add your own data for each document in the matrix