How can I create a matrix with different ratings?