Add output to the array demo