Fixed the lab... finally! Have a look at the code. We will have to ask
things on the lab for some things are not totally clear. (It was really
only a matter of us not closing the pipes after excecution of the pipes
before.)