lab2 4.3.4 extracting v2: multiple consumers