coded the contentsOfDirectoryAt: