Creates class ProducerConsumer