added getInput and test.sh first version