pub/sub example
use lazy init for beans