added demo version of matrix