creating a sample directive and service