handypipefds task solution
while(1) -> while(! eof)
add testers
very ugly code :(