IMPLEMENT DIRECTORY CLASS