use no-arg constructor and init method to initialize publisher.