print_array implemented