consumer +producer with plot