adding supoprt for dynamic arrays, adding examples