Added default constructors to Publisher and Subscriber