added array snippet