sets up basics for custom directive and changing class