lab3 on Linux via pipe()