shell script function example