simple example to use directive