code for producer-consumer problem