Assignment 4 in concurrent programming course