adding more examples, modify to have input directory in each case