Changed constructors of Producer and Consumer classes