[6] implemented parsing all files in a directory