consumer +producer with plot + save. first version