added a directive example

I wanted to add a directive example to the prosject