added first version of 2D matrix