Using directive and classes