Adjusted code accordingly to use Class, Attribute and Meta of Directives