First working version with consumer and publisher