First implementation of publisher