consumer-producer problem

i think it works