updated bash script to run through basic example