added tables as representation of matrix