Final Shell script

Final shell script ready to go!