start implementing for multidimensional array. meanwhile - compiles and
working well only for single dimensional array.