Updated the print_array() function
Added Directories and updated print_array() function