made the getPathName method and changeDir method