Adds the abstract class Service. Handles multiple connections.