add service base class with an example and some documentation