added read_directory.c