whipped up a small example of using directory