finished template.sh (for now)