Added example with directive