implemented the communication between the processes