initial shell script. fig doesn't look exactly appropriate