added static and dynamic arrays, but have not tested yet