Introduce function for printing array.