added code to have a different producer and consumer