newSampleDirectoryFunction