add pub/sub example