Also added some functions to print the producer and consumer arays