Trying to do the ProducerConsumer Exercise