added example for directory