Click this link to download the directory example I showed in class.
You should read chapter 9 of the textbook.