more compact array example