Fixing issues with call to Matrix in example