added directives and controller example