Modify to automatically make sample input, Delete pd1.txt