Shell Scripting-Functions and Command line Arguments