adding slave program

I'll start this