shell script functions example