simple example of producer consumer problem