initial version for HW #7
make it use two processes connected by a pipe.