experimenting with threads
Reading commands from pipe