adding test cases of directory and after testing 80% accuracy