version 1 of BASH script